<!DOCTYPE html>

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title></title>
    <script src="./js/element-ui.js"></script>
    <style>
        body{
            background-color:  aliceblue;
        }
        #app{
            width: 80%;
            margin: 20px auto;
            background-color: #fff;
            border: 5px solid blueviolet;
            border-radius: lem;
            box-shadow: 3px 3px 3px rgba(0,0,0,0.5);
        }
        h3{
            text-align: center;
        }
        .title{
            display: flex;
            justify-content: space-between;
            align-items: center;
            /* text-align: center; */

            border: 1px solid #ccc;
        }
       .title h4{
           line-height: 2;
           margin: 0;       
        }
    </style>
</head>

<body>
    <div id="app">
    <h3>我最爱的古诗词</h3>
    </div>
        <div class="title">
            <h4>XXXXX</h4>
            <span @click="click1">{{isOK?'收起':'展开'}}</span>
        </div>
        <div v-show="isOK?">
            

        </div>
        </div>
    </div>

    </div>


    <script>
        var vm = new Vue({
            el: '#app',
            data() {
                return{
                    isOk : false
                }
              
            },
            
            methods: {
                click1(){
                    this.isOk = !this.isOk
                }
            }
            })
             
        
    </script>
</body>

</html>